<?php 

header("Content-type: text/html; charset=utf-8") ;

// $num = true;

// echo $num;

// var_dump($num);

// print($num);

// print_r($num);


// $num =12;


// $num1 = &$num;

// $num1 = 20;


// var_dump($num1,$num);


// $a = 'xue';

// $$a = "word";
	
// var_dump($xue);

var_dump($_GET);
// 路径传参

//http://127.0.0.1/P201602/06-02/var.php?id=10&name=%E5%AD%A6%E5%B9%B6%E6%80%9D

var_dump($_POST);


var_dump($_REQUEST)







 ?>


 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 	<title>post</title>
 </head>
 <body>
 	<form action="" method="get">
 		<input type="text" name="username">
 		<input type="password" name="password">
 		<input type="submit" value="注册">

 	</form>
 	
 </body>
 </html>